<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        .div1 span {
            color: red;
        }
    </style>
</head>
<body>
    <div class="div1">
        <span>
            一代内容会变红
        </span>
        <p><span>二代内容也会变红</span></p>
    </div>
</body>
</html>